package com.ls.springlei01.bean;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

// 只有在容器中的组件，才会拥有springboot提供的强大的功能
@Component
@ConfigurationProperties(prefix = "mycar")
@Data
@ToString
public class Car {
    private String brand;
    private Integer price;

}
